{include file="header.tpl" title="par_lncharge"}
<form action="" method="post" name ="tongquat" target="_self">
  <table width="115%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td colspan="2" ><input name="button" type="button" class="button_style" onclick="history.back();" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" value="{$ten_trove}" /></td>
      <td align="right" nowrap="nowrap" colspan="2"><select name="hanhdong" size="1" onchange="changevalue('hanhdong');">
        
        
   {foreach from=$chuyentrang key=k item=v}
      
        
        <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
        
        
 	{/foreach}

      
      </select>
          <input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onclick="" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'"/></td>
    </tr>
    <tr>
      <td colspan="4"><hr /></td>
    </tr>
    <tr >
      <td width="25%" >{$lbl_CHRCODE}</td>
      <td colspan="3" style="color:#FF0000;"><input name="CHRCODE" id="CHRCODE" type="text" style="background:{$colorCHRCODE}; text-align:left" value="{$CHRCODE}" size="15" maxlength="3" onkeyup="this.value=this.value.toUpperCase().replace(' ','').replace('!','').replace('@','').replace('#','').replace('$','').replace('&','').replace('*','');" onblur="this.value=this.value.toUpperCase().replace(' ',''); " {if $activefield eq 'enabled'} readonly="readonly" {/if}/>
          <span style="color:#FF0000"> * </span> <span style="color:#FF0000">
          <input id="replacement_find" type="submit" name="find" value="    "  height="15"/>
        </span></td>
    </tr>
    <tr >
      <td>{$lbl_VNDESC}</td>
      <td colspan="3"><span style="color:#FF0000;">
        <input name="VNDESC" id="VNDESC" type="text" value="{$VNDESC}" size="60" maxlength="50" style="background:{$colorVNDESC};text-align:left" />
* </span></td>
    </tr>
    
    <tr >
      <td>{$lbl_ENDESC}</td>
      <td colspan="3"><input name="ENDESC" id="ENDESC" type="text"  value="{$ENDESC}" size="60" maxlength="50" style="text-align:left"/></td>
    </tr>
    <tr >
      <td>{$lbl_FAMT}</td>
      <td colspan="3"><input name="FAMT" id="FAMT" type="text" style="background:{$colorFAMT}; text-align:right;" value="{$FAMT}" size="25" maxlength="20" onBlur="formatNumber2(this,this.value,20,2);" onkeypress="return numberOnly(event);" onclick="allowOnlyFloatingPointNumbers(this,this.value);"/>
        <span style="color:#FF0000;">*</span></td>
    </tr>
    
    <tr >
      <td>{$lbl_RATE}</td>
      <td colspan="3" ><input name="RATE" id="RATE" type="text" style="background:{$colorRATE}; text-align:right" value="{$RATE}" size="25" maxlength="20"  onBlur="formatNumber2(this,this.value,20,4);" onkeypress="return numberOnly(event);" onclick="allowOnlyFloatingPointNumbers(this,this.value);"/>
        <span style="color:#FF0000;">*</span></td>
    </tr>
    <tr >
      <td>{$lbl_GLACCT}</td>
      <td colspan="3" ><input name="GLACCT" id="GLACCT" type="text" style="background:{$colorGLACCT}; text-align:right" value="{$GLACCT}" size="20" maxlength="10"   onkeypress="return numberOnly(event);">
          <span style="color:#FF0000">*
            <input type="button" onclick="mywindow = window.open('microbank_id.php?name=GLACCT', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="microbank" id="replacement_binoculars" value="     " />
        </span></td>
    </tr>
    <tr >
      <td>{$lbl_VAT}</td>
      <td colspan="3" ><select name="VAT" size="1" id="VAT" >
        
			{foreach from=$cbo_VAT key=k item=v}
    
        <option value="{$k}" {if $VAT eq $k} selected="selected" {/if}>{$k} - {$v}</option>
            
			{/foreach}   
  
      </select>
          <span style="color:#FF0000;">*</span> </td>
    </tr>
    
    <tr >
      <td><span style="text-align:right">{$lbl_TYPE}</span></td>
      <td colspan="3" ><select name="TYPE" size="1" id="TYPE" onchange="return checkTYPE(); " >
        
			{foreach from=$cbo_TYPE key=k item=v}
    
        <option value="{$k}" {if $k eq $TYPE} selected="selected" {/if}>{$k} - {$v}</option>
        
			{/foreach} 
  
      </select>
          <span style="color:#FF0000;">*</span> </td>
    </tr>
    <tr >
      <td>{$lbl_MIN}</td>
      <td colspan="3" ><input name="MIN" id="MIN" {$desebleTextbox} type="text" style="background:{$colorMIN}; text-align:right" value="{$MIN}" size="25" maxlength="20" onblur="formatNumber(this,this.value);" onkeypress="return numberOnly(event);" onclick="allowOnlyFloatingPointNumbers(this,this.value);" {if $maxminvisibled eq 'enabled'} readonly="readonly" {/if} /></td>
    </tr>
    <tr >
      <td><span style="text-align:right">{$lbl_MAX}</span></td>
      <td colspan="3" ><input name="MAX" id="MAX" {$desebleTextbox} type="text" style="background:{$colorMAX}; text-align:right " value="{$MAX}" size="25" maxlength="20" onblur="formatNumber(this,this.value);" onkeypress="return numberOnly(event);" onclick="allowOnlyFloatingPointNumbers(this,this.value);" {if $maxminvisibled eq 'enabled'} readonly="readonly" {/if} />        
        <span style="color:#FF0000;">{$error_maxmin}</span></td>
    </tr>
    
    
    <tr>
      <td colspan="4" align="right" nowrap="nowrap"><input type="button" name="cancle" id="cancle" value="{$ten_cancle}" class="button_style" onclick="activeform(this.form,'CHRCODE');" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
          <input type="submit" name="capnhat" value="{$ten_cap_nhat}" {if $activefield eq 'disabled' }disabled="disabled" {/if} class="button_style" onclick="" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" /></td>
    </tr>
    <tr>
      <td align="left" nowrap="nowrap" colspan="4"><input name="addnew" type="submit" value="{$ten_themmoi}" class="button_style" onclick="" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
          <input name="detail" type="submit" value="{$ten_chitiet}" class="button_style" onclick="" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" /></td>
    </tr>
    <tr>
      <td colspan="4"><hr /></td>
    </tr>
    <tr>
      <td colspan="3"><input name="button2" type="button" class="button_style" onclick="history.back();" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" value="{$ten_trove}" /></td>
      <td width="22%" align="right" nowrap="nowrap"><select name="hanhdong1" size="1" onchange="changevalue('hanhdong1');">
        
        
   {foreach from=$chuyentrang key=k item=v}
      
        
        <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
        
        
 	{/foreach}

      
      </select>
          <input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onclick="" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" /></td>
    </tr>
  </table>
</form>
{$javascriptsetstyle}
{include file="footer.tpl"}
